-
Notifications
You must be signed in to change notification settings - Fork 11.7k
SYCL: Add all missing unary kernels #13074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dd0b15f
to
beed9b3
Compare
beed9b3
to
bafafc3
Compare
Both methods are same for some cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job to support more OPs!
Thank you!
Added missing absolute, ELU and SGN kernels.
test-backend-ops is passing with this change.
Note: Instead of doing
item_ct1.get_local_range(2) * item_ct1.get_group(2) + item_ct1.get_local_id(2);
as with how it has been for rest of it, I diditem_ct1.get_global_id(2)
for getting the idx position of an element here since operation of each element is independent of each other. Will be happy to hear thoughts about this.